var common = require('../../common');
var pool = require('../index');
var mysql = require('mysql');
var YjxBaseModel = require('./YjxBaseModel');
var CONFIG = require('../../config');


var YjxActRewardRuleModel = function (obj) {
    YjxBaseModel.call(this,obj);

    // `arr_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
    // `as_id` bigint(20) NOT NULL COMMENT '活动配置id',
    // `reward_amt` bigint(20) NOT NULL COMMENT '奖励数量',
    // `unit` varchar(20) NOT NULL COMMENT '奖励单位',
    // `min` bigint(20) NOT NULL COMMENT '奖励范围最小值',
    // `max` bigint(20) NOT NULL COMMENT '奖励范围最大值',
    // `state` int(3) NOT NULL DEFAULT '10' COMMENT '状态:10有效,20无效',
    // `desc` varchar(100) DEFAULT NULL COMMENT '备注',
    // `create_time` datetime NOT NULL,
    // `update_time` datetime NOT NULL,
    // `update_by` varchar(50) DEFAULT NULL,
    // `del_flg` int(1) NOT NULL DEFAULT '0',

};

YjxActRewardRuleModel.prototype = new YjxBaseModel();

// 取得表名
YjxActRewardRuleModel.prototype.getTableName = function(){
    return 'yjx_act_reward_rule';
};
// 取得查询语句中where 后面匹配主键的条件（需要各派生类进行重载）
YjxActRewardRuleModel.prototype.getWhereConditionOfKeyEqual = function(){
    return 'arr_id='+this.arr_id;
};





module.exports = YjxActRewardRuleModel;

